import request from '@/utils/request'

// 查询出库列表
export function listInout(query) {
  return request({
    url: '/stock/out/list',
    method: 'get',
    params: query
  })
}

// 查询出库详细
export function getInout(inoutId) {
  return request({
    url: '/stock/out/' + inoutId,
    method: 'get'
  })
}

// 修改出库
export function updateInout(data) {
  return request({
    url: '/stock/out',
    method: 'put',
    data: data
  })
}

// 确认出库
export function inoutOut(data) {
  return request({
    url: '/stock/out/out',
    method: 'post',
    data: data
  })
}
